<?php
declare(strict_types=1);
class Aaa
{
    public function aaa(string $msg) 
    {
        print("aaaaa");
    }
    public function ccc() 
    {
        print("aaaccc");
    }
    
}

class Baa extends Aaa{
    public function aaa(string $msg){
        print("bbb");
    }
}

print(Baa::class);
print(Baa::class);
print(Baa::class);
print(Baa::class);
print(Baa::class);
$aaa = new Baa();
$aaa->aaa("111");